package com.snackshop.pojo.vo;

public enum ResponseState {
    SUCCESS(2000,"响应成功"),
    FAILED(5000,"服务端异常"),
    USERNAMEORPASSWORDERROR(50001,"用户名或者密码错误"),
    NOTLOGIN(50002,"未登录"),
    ACCESSDENIED(5003,"暂无权限"),
    USEREXSITS(5004,"用户已存在"),


    ;



    private Integer code;
    private String msg;

    ResponseState(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
